#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_light_clicked()
{
    ui->plainTextEdit->setStyleSheet("background-color:white;color:black");
    this->setStyleSheet("background-color:rgb(240,240,240);");
    ui->light->setStyleSheet("background-color:rgb(240,240,240);color:black");
    ui->dark->setStyleSheet("background-color:rgb(240,240,240);color:black");
}



void Widget::on_dark_clicked()
{
    ui->plainTextEdit->setStyleSheet("background-color:black;color:white");
    this->setStyleSheet("background-color:black;");
    ui->light->setStyleSheet("background-color:black;color:white");
    ui->dark->setStyleSheet("background-color:black;color:white");
}
